package base
/*科目明细*/

class AccountDetail {
    /*科目明细-名称*/
    String name

    /*创建时间*/
    Date dateCreated
    /*最后更新的时间*/
    Date lastUpdated
    static constraints = {
    }

    String toString(){
        name
    }

    transient utilsService
    def buildDomain() {
        def b = [:] + this.properties
        def param = [allowformat: true, allowprecision: false]
        b = utilsService.truncProp(this, b, param) { amap ->
            amap << ['id': this.id]

        }
        b
    }

    def buildDomainList(list) {
        def rds = []
        list.each {
            def b = [:] + it.properties
            def param = [allowformat: true, allowprecision: false]
            b = utilsService.truncProp(it, b, param) { amap ->
                amap << ['id': it.id]
            }
            rds << b
        }
        return rds
    }
}
